﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;


namespace DHQGHN.DAL.Models.DanhMuc
{
    [DataContract]
    public class ADM_UNIT_EXT
    {
        #region Constructors
        public ADM_UNIT_EXT()
        {
            this.ADM_UNIT_EXT_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_ID = Common.NullValues.Default_String;
            this.PARENT_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_EXT_TYPE = Common.NullValues.Default_String;
            this.LEVELS = Common.NullValues.Default_Int;
            this.CODE = Common.NullValues.Default_String;
            this.NAME = Common.NullValues.Default_String;
            this.DESCRIPTIONS = Common.NullValues.Default_String;
            this.DELETED = Common.NullValues.Default_Int;
            this.START_DATE = Common.NullValues.Default_Int;
            this.END_DATE = Common.NullValues.Default_Int;
            this.LAST_UPDATED = Common.NullValues.Default_DateTime;
            this.AREA_ID = Common.NullValues.Default_String;
        }
        #endregion

        #region Properties
        [DataMember]
        public string ADM_UNIT_EXT_ID { get; set; } //ADMINIST_UNIT_EXT_ID bigint => 
        [DataMember]
        public string PARENT_ID { get; set; } //PARENT_ID bigint => 
        [DataMember]
        public string ADM_UNIT_ID { get; set; } //ADMINIS_UNIT_ID bigint => 
        [DataMember]
        public string ADM_UNIT_EXT_TYPE { get; set; } //ADMINISTRATIVE_UNIT_EXT_TYPE varchar(20) => 
        [DataMember]
        public int LEVELS { get; set; } //LEVELS nvarchar(50) => 
        [DataMember]
        public string CODE { get; set; } //CODE varchar(20) => 
        [DataMember]
        public string NAME { get; set; } //NAME varchar(20) => 
        [DataMember]
        public string DESCRIPTIONS { get; set; } //DESCRIPTTIONS varchar(20) => 
        [DataMember]
        public int DELETED { get; set; } //DELETED int => 
        [DataMember]
        public Int32 START_DATE { get; set; } //START_DATE bit => 
        [DataMember]
        public Int32 END_DATE { get; set; } //END_DATE int => 
        [DataMember]
        public DateTime LAST_UPDATED { get; set; } //LAST_UPDATED datetime => 
        [DataMember]
        public string AREA_ID { get; set; }
        #endregion
     
        #region Field list from Model
        public const string Field_ADM_UNIT_EXT_ID = "ADM_UNIT_EXT_ID";
        public const string Field_PARENT_ID = "PARENT_ID";
        public const string Field_ADM_UNIT_ID = "ADM_UNIT_ID";
        public const string Field_ADM_UNIT_EXT_TYPE = "ADM_UNIT_EXT_TYPE";
        public const string Field_LEVELS = "LEVELS";
        public const string Field_CODE = "CODE";
        public const string Field_NAME = "NAME";
        public const string Field_DESCRIPTTIONS = "DESCRIPTTIONS";
        public const string Field_DESCRIPTIONS = "DESCRIPTIONS";
        public const string Field_DELETED = "DELETED";
        public const string Field_START_DATE = "START_DATE";
        public const string Field_END_DATE = "END_DATE";
        public const string Field_LAST_UPDATED = "LAST_UPDATED";
        public const string Field_AREA_ID = "AREA_ID";
        #endregion
    }
}
